import axios from "@/utils/http"

const token=localStorage.getItem("token");
// console.log(token);

//获取学生信息
export function getStu(){
    return axios({
        url:"/fore/student/one",
        method:"get"
    })
}

// 首页会议
export function findMeeting(){
    // console.log(token);
    
    return axios({
        method:"get",
        url:"/fore/meeting/findMeetingList",


    })
}

// 首页获取教师
export function getTeacher(){
    return axios({
        url:"/fore/homePage/getTeacherList",
        method:"get"
    })
}


// 查询精选课程
export function selectJingxuan(){
    return axios({
        url:"/fore/class/findSelected",
        method:"get"
    })
}


// 查询公开课程
export function selectOpen(){
    return axios({
        url:"/fore/class/findSelectedPublic",
        method:"get"
    })
}

// 查询vip课程
export function selectVip(){
    return axios({
        url:"/fore/class/findSelectedVip",
        method:"get"
    })
}


// 获取试题
export function getquestion(id:any){
    return axios({
        url:`/fore/question/findByPaperId/${id}`,
        method:"get"
    })
}
